<?php
	/**/
	$redis = new Redis();
	$redis->connect('127.0.0.1', 6379);
	$redis->set('test', 'hello world');
	echo $redis->get('test');
	/* */

	/**/
	$data = array(0 => 'abc',
		1 => '厦门',
		'abc' => '123456'
	);
	$myArray = msgpack_pack($data);
	$msg = msgpack_unpack($myArray);
	// var_dump($myArray);
	echo "\n";
	var_dump($msg);
	/* */

	$memcache = new Memcache;
	$memcache->connect('localhost', 11211) or die("Could not connect");
	$memcache->set('key', 'test');
	$get_value = $memcache->get('key');
	echo $get_value;
	$memcache->close();
?>
